package factory.methodfactory.dumpling;

/**
 * @author desire
 */
public abstract class Dumpling {

    protected String name;

    /**
     * 准备原材料
     */
    public abstract void prepare();


    public void pack(){
        System.out.println(name + " packing;");
    }

    public void cook(){
        System.out.println(name + " cooking;");
    }

    public void setName(String name) {
        this.name = name;
    }
}
